<div class="planning-menu">
    <div class="planning-menu-left"><ul class="tab">
	    <?php switch ($mode):
		case Planning::MOIS: ?>
	    <li><a href="<?php echo shRequest::link(shRequest::__instance()->getModule(),shRequest::__instance()->getAction(),shRequest::__instance()->getRequest(), array($promotion,$mode,Date::today()->format('d-m-Y')))?>">Ce mois</a></li>
	    <li><a href="<?php echo shRequest::link(shRequest::__instance()->getModule(),shRequest::__instance()->getAction(),shRequest::__instance()->getRequest(), array($promotion,$mode,$date->alter('-1 month')->format('d-m-Y')))?>">&laquo;</a></li>
	    <li><a href="<?php echo shRequest::link(shRequest::__instance()->getModule(),shRequest::__instance()->getAction(),shRequest::__instance()->getRequest(), array($promotion,$mode,$date->alter('+1 month')->format('d-m-Y')))?>">&raquo;</a></li>
		    <?php break;

		case Planning::JOUR: ?>
	    <li><a href="<?php echo shRequest::link(shRequest::__instance()->getModule(),shRequest::__instance()->getAction(),shRequest::__instance()->getRequest(), array($promotion,$mode,Date::today()->format('d-m-Y')))?>">Aujourd'hui</a></li>
	    <li><a href="<?php echo shRequest::link(shRequest::__instance()->getModule(),shRequest::__instance()->getAction(),shRequest::__instance()->getRequest(), array($promotion,$mode,$date->alter('-1 day')->format('d-m-Y')))?>">&laquo;</a></li>
	    <li><a href="<?php echo shRequest::link(shRequest::__instance()->getModule(),shRequest::__instance()->getAction(),shRequest::__instance()->getRequest(), array($promotion,$mode,$date->alter('+1 day')->format('d-m-Y')))?>">&raquo;</a></li>
		    <?php break;

		default: ?>
	    <li><a href="<?php echo shRequest::link(shRequest::__instance()->getModule(),shRequest::__instance()->getAction(),shRequest::__instance()->getRequest(), array($promotion,$mode,Date::today()->format('d-m-Y')))?>">Cette semaine</a></li>
	    <li><a href="<?php echo shRequest::link(shRequest::__instance()->getModule(),shRequest::__instance()->getAction(),shRequest::__instance()->getRequest(), array($promotion,$mode,$date->alter('-7 day')->format('d-m-Y')))?>">&laquo;</a></li>
	    <li><a href="<?php echo shRequest::link(shRequest::__instance()->getModule(),shRequest::__instance()->getAction(),shRequest::__instance()->getRequest(), array($promotion,$mode,$date->alter('+7 day')->format('d-m-Y')))?>">&raquo;</a></li>
		    <?php break;
		endswitch; ?>
	    <li class="sans"><?php echo $intervalle ?></li>
	</ul></div>
    <div class="planning-menu-right"><ul class="tab">
	    <li><a href="<?php echo shRequest::link(null, 'export', null, $promotion, 'ics'); ?>" class="ics">Export ICS</a></li>
	</ul></div>
</div>




<div class="planning"><div class="frametab">
    <?php shTemplate::tplInclude(DIR_TEMPLATES .'_planningSemaine.tpl',
				 array(
				     'date' => $date,
				     'seances' => $seances
    )) ?>
    <hr/>
</div></div>